<?php
function pdlook()
{
  if (isset($_SESSION['uName'])) {
    if (trim($_SESSION['uName'] == '')) {
      echo "<script>alert('无法访问,请先登录');window.location.href='../view/index.php';</script>";
    }
  } else {
    echo "<script>alert('无法访问,请先登录');window.location.href='../view/index.php';</script>";
  }
}

?>